<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <link rel="icon" type="image/x-icon" href="/images/速康logo.jpg" >
    <!--<link rel="stylesheet" href="/css/reset.css" />
    <link rel="stylesheet" href="/css/content.css" />-->
</head>
<body>
<header>
    <%- include ../head.ejs %>
</header>
<div style="">

    <div style="width: 800px;height: 400px;margin:50px 300px;">
        <h3 style="font-size: 18px;font-weight: 700">商品添加:</h3>
        <hr>
        <form class="form-horizontal" method='post' action='javascript:;' role="form" id="frmUploadFile" style="border:2px solid #dedede;padding-top: 50px;padding-left: 140px">
            <div class="form-group">
                <label class="control-label col-sm-2">商品编号：</label>
                <div class="col-sm-8">
                    <input type="text" name="GoodsId" value="" class="form-control"/>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-2">商品名称：</label>
                <div class="col-sm-8">
                    <input type="text" name="GoodsName" value="" class="form-control"/>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-2">商品价格：</label>
                <div class="col-sm-8">
                    <input type="text" name="Price" value="" class="form-control"/>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-2">上传图片：</label>
                <div class="col-sm-8">
                    <input type="file" name="files" id="myFile" class="form-control"/>
                </div>

                <label for="control-label" id="fileSize"></label>
            </div>
            <label style="margin-left: 118px;">图片限于bmp,png,gif,jpeg,jpg格式,且大小不超过1M</label><br><br>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button class="btn btn-primary" onClick="uploadFile()" style="width: 300px;height: 35px">提交</button>
                    <span class="help-inline" id="spanMessage"></span>
                </div>
            </div>
        </form>

        <div class="row" style="text-align: center">
            <img id="imgShow"/>
        </div>
    </div>
</div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/javascripts/Goods.js"></script>
</body>
</html>